﻿
    using Chain.BLL;
    using Chain.Model;
using Chain.Common;
using Chain.DAL;
using Chain.DBUtility;
using Chain.IDAL;
using Chain.Tasks;
using Chain.Wechat;
    using System;
    using System.IO;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;

    public partial class WeiXinGiftShow : Page
    {
        protected string GiftID = string.Empty;

        protected Chain.Model.PointGift giftModel = null;
        protected string MemWeiXinCard = string.Empty;

        protected string GetPhoto()
        {
            string text1 = "http://" + PubFunction.curParameter.strDoMain;
            string strPhoto = "http://" + PubFunction.curParameter.strDoMain + this.giftModel.GiftPhoto;
            if (!File.Exists(base.Server.MapPath(this.giftModel.GiftPhoto)))
            {
                return "/Upload/MemPhoto/nophoto.gif";
            }
            return strPhoto;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.MemWeiXinCard = base.Request["MemWeiXinCard"];
            this.GiftID = base.Request["GiftID"];
            this.giftModel = new Chain.BLL.PointGift().GetModel(int.Parse(this.GiftID));
        }
    }


